package com.longjianghuasheng.logistics.business.mine

import androidx.lifecycle.MutableLiveData
import com.longjianghuasheng.logistics.base.BaseMultiStateViewModel
import com.longjianghuasheng.logistics.entity.AboutResponse
import com.longjianghuasheng.logistics.network.apiService

/**
 * @author：T
 * @date：2022/1/24:17:31
 * @des：
 */
class AboutViewModel : BaseMultiStateViewModel() {

    var id = 0

    var isProblem = false

    val result by lazy {
        MutableLiveData<AboutResponse>()
    }

    fun abouts() {
        getData({ if (!isProblem) apiService.abouts(id) else apiService.help_show(id) }, result)

    }
}